//
//  GTMapViewController.m
//  SampleApp2
//
//  Created by GXHC on 2023/6/28.
//

#import "GTMapViewController.h"
#import <MapKit/MapKit.h>
@interface GTMapViewController ()
@property(nonatomic, strong, readwrite)MKMapView *mapView;
@end

@implementation GTMapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
	
	[self.view addSubview:({
		self.mapView = [[MKMapView alloc]initWithFrame:CGRectMake(0, 88, self.view.bounds.size.width, self.view.bounds.size.height -88)];
		self.mapView.userTrackingMode = MKUserTrackingModeFollow;
		self.mapView.mapType = MKMapTypeStandard;
		self.mapView.showsUserLocation = YES;
		self.mapView;
	})];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
